# -*- coding: UTF-8 -*-

from gensim.test.utils import common_corpus, common_dictionary
from gensim.models import HdpModel

hdp = HdpModel(common_corpus, common_dictionary)
topic_info = hdp.print_topics(num_topics=20, num_words=10)
print(common_corpus)
print(common_dictionary)

from gensim.corpora import Dictionary
texts = [['a', 'b'], ['a', 'c']]
dct = Dictionary(texts)
print(dct)